package ch.bfh.abch.rems.receiver.tinkerforge;

import ch.bfh.abch.rems.receiver.MulticastReceiver;
import ch.bfh.abcm.rems.interfaces.REMSMessageReceiver;
import ch.bfh.abcm.rems.tinkerforge.TFNodeAverageMessage;

public class TFMulticastReceiver extends MulticastReceiver {

    public TFMulticastReceiver(REMSMessageReceiver receiverImplementation, String multicastAdress, int receiverPort) {
        super(receiverImplementation, multicastAdress, receiverPort);
    }

    @Override
    protected void receivedTFNodeAverage(TFNodeAverageMessage tfNodeAverage) {
        logger.debug(tfNodeAverage);
        receiver.receivedTFNodeAverageMessage(tfNodeAverage);
    }
}
